package luogu.editor;

import java.util.Scanner;
/* 小蓝和朋友们在玩一个报数游戏。由于今年是 
2024 年，他们决定要从小到大轮流报出是 
20 或 24倍数的正整数。前 10 个被报出的数是：
20,24,40,48,60,72,80,96,100,120。请问第 
202420242024 个被报出的数是多少? */
public class baoShuGame {
    public class Main {
/*         public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            //在此输入您的代码...
            long n = 202420242024L;
            long sum = 0;
            for(long i = 1;i<=n;i++){
                if (i%2==1) {
                    // 奇数
                    sum = 20*(i/2+1);
                } else {
                    sum = 24*(i/2);
                }
            }
            System.out.println(sum);
            scan.close();
        }*/
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            long num = 202420242024L;
            int n = (int)(num%2);
            if(n==1){
                System.out.println(20*(num/2+1));
            }else{
                System.out.println(24*(num/2));
            }
        }
    }
}
